package com.github.shiqiyue.app.api.sapi.controller.sys;

import com.github.shiqiyue.app.api.sapi.common.SApiBaseController;
import com.github.shiqiyue.app.common.result.Result;

import com.github.shiqiyue.app.modules.sys.entity.FileExport;
import com.github.shiqiyue.app.modules.sys.service.IFileExportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * 文件导出接口
 * @author wenyao.wu
 * @since 2020年5月20日
 */
@RestController
@RequestMapping("/sapi/sys/fileExport")
public class SApiFileExportController extends SApiBaseController {

    @Autowired
    private IFileExportService fileExportService;

    /***
     * 查询文件导出状态
     * @param id
     * @return
     */
    @PostMapping("query")
    public Result query(Long id) {
        FileExport fileExport = fileExportService.getById(id);
        return Result.success(fileExport);
    }

}
